//Навигация CTRL + стрелки

document.onkeydown = Navigate;

function Navigate (event)
{
	if (!document.getElementById) return;

	if (window.event) event = window.event;

	if (event.ctrlKey)
	{
		var link = null;
		var href = null;
		switch (event.keyCode ? event.keyCode : event.which ? event.which : null)
		{
			case 0x25://Влево
				link = document.getElementById ('link_prev');
				break;
                        case 0x27://Вправо
				link = document.getElementById ('link_next');
				break;			
			case 0x26://Вверх
				link = document.getElementById ('catLink');
				break;
			case 0x28://Вниз
				link = document.getElementById ('storeLink');
				break;
			case 0x24://Home
				href = '/';
				break;
		}

		if (link && link.href) document.location = link.href;
		if (href) document.location = href;
	}			
}
